package LuoGu.入门.NumberTriangle;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int l = 0;
        int r = 1;
        int n = s.nextInt();
        for(int i=0;i<n;i++){
            for(int j=0;j<n-i;j++){
                System.out.print(l);
                System.out.print(r);
                r++;
                if(r==10){
                    r = 0;
                    l++;
                }
            }
            System.out.println();
        }
    }
}
